<!DOCTYPE html>
<html>
{include file="public/head" /}
<body class="zanpian-body">
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="callout callout-title">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <h4>{$nav.title}</h4>
                <p>碎片越大，越影响MYSQL性能,如果表碎片过大,可以优化来整理该碎片。</p>
</div>
<div class="panel-body">
<div class="panel-tool">
<div class="row">
              <div class="col-xs-12 mb15">
                <div id="toolbar" class="toolbar">
                <a  class="btn btn-success btn-add" href="{:url('index',array('type'=>'export'))}"><i class="fa fa-floppy-o"></i> 数据备份</a> 
                </div>
                <!-- /.toolbar -->
              </div>
            </div>

</div>
<!-- /.panel-tool -->
    <div class="tab-content" id="contents">
                <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
                  <thead>
                    <tr style="height:45px;">
                    <th style="text-align:center;vertical-align: middle;">备份名称</th>
                    <th style="text-align:center;vertical-align: middle;">备份卷数</th>
                    <th style="text-align:center;vertical-align: middle;" class="hidden-xs">压缩方式</th>
                    <th style="text-align:center;vertical-align: middle;">数据大小</th>
                    <th style="text-align:center;vertical-align: middle;" class="hidden-xs">备份时间</th>
                    <!--<th style="text-align:center;vertical-align: middle;">创建时间</th>-->
                    <th style="text-align:center;vertical-align: middle;">还原状态</th>
                    <th style="text-align:center;vertical-align: middle;">数据操作</th>
                    </tr>
                 </thead>                
               <tbody>
               {notempty name="list"} 
              {volist name="list" id="data"}
               <tr>         
                  <td align="center">{$data.time|date='Ymd-His',###}</td>
                  <td align="center">{$data.part}</td>
                  <td align="center" class="hidden-xs">{$data.compress}</td>
                  <td align="center">{$data.size|format_bytes}</td>
                   <td align="center" class="hidden-xs">{$key}</td>
                  <td align="center" class="info">-</td>
                  <td align="center"><a id="db-import" class="confirm btn btn-info btn-xs" href="{:url('import',array('time'=>$data['time']))}"><i class="fa fa-stop-circle-o"></i> 还原</a> <a class="confirm btn btn-danger btn-xs confirm ajax-post" href="{:url('del',array('time'=>$data['time']))}"><i class="fa fa-trash-o"></i> 删除</a></td>  
                  
              </tr>
{/volist} 
                {else/}<tr><td align="center" colspan="7" >抱歉，没有找到相关备份文件！</td></tr>{/notempty}
            </tbody>
                </table>
              </form>
            </div>    
         </div>
         <!-- /.panel-body --> 
        </div>
        </div>
        </section>
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
      zanpian.cms.data();
});	
</script>
</body>
</html>
